# -*- coding:utf-8 -*-
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
import urlparse
import json


class TestHTTPHandle(BaseHTTPRequestHandler):
    def do_GET(self):
        self.protocal_version = "HTTP/1.1"
        self.send_response(200)
        self.send_header("Welcome", "Contect")
        self.end_headers()
        mPrintMsg = "MESSAGEBEGIN"
        mPrintMsg += "hello World !"
        self.wfile.write(mPrintMsg)


http_server = HTTPServer(('0.0.0.0', int(8000)), TestHTTPHandle)
http_server.serve_forever()
